ScCompiler.getBinaryOffsetForDecoration

Gets the offset in SPIR-V words (uint) for a decoration which was originally declared in the SPIR-V binary. The offset will point to one or more uint literals which can be modified in-place before using the SPIR-V binary. Note that adding or removing decorations using the reflection API will not change the behavior of this function. If the decoration was declared, sets the word_offset to an offset into the provided SPIR-V binary buffer and returns true, otherwise, returns false. If the decoration does not have any value attached to it (e.g. DecorationRelaxedPrecision), this function will also return false.

class ScCompiler
const
bool
getBinaryOffsetForDecoration

Meta